package cn.lx;

/**
 * @author lixin
 * @Classname Decorator
 * @Description 抽象装饰类
 * @Date 2019/10/7 下午3:28
 */
public abstract class Decorator extends Component {
    private Component component;

    public Decorator(Component _component) {
        this.component = _component;
    }

    @Override
    public void operate() {
        this.component.operate();
    }
}
